package com.iogogogo.activity.util;

import java.io.Closeable;
import java.io.IOException;
import java.util.Objects;

/**
 * Created by tao.zeng on 2022/6/17.
 */
public class IoUtils {

    public static void close(Closeable... closeables) {
        if (Objects.isNull(closeables)) return;
        try {
            for (Closeable closeable : closeables) {
                closeable.close();
            }
        } catch (IOException e) {
            // ignore
        }
    }
}
